package cn.org.timespace.ons.service.base.impl;

import java.util.List;

import cn.org.timespace.ons.action.base.MachinesConfModel;
import cn.org.timespace.ons.action.base.MachinesModel;
import cn.org.timespace.ons.dao.base.MachinesConfDao;
import cn.org.timespace.ons.service.base.MachinesConfService;
import cn.org.timespace.ons.util.pager.Pager;
import cn.org.timespace.ons.vo.base.MachinesConf;

public class MachinesConfServiceImpl implements MachinesConfService {

	private MachinesConfDao machinesConfDao;
	
	
	public MachinesConfDao getMachinesConfDao() {
		return machinesConfDao;
	}

	public void setMachinesConfDao(MachinesConfDao machinesConfDao) {
		this.machinesConfDao = machinesConfDao;
	}

	@Override
	public void delete(MachinesConf persistentInstance) {
		// TODO Auto-generated method stub

		machinesConfDao.delete(persistentInstance);
	}
	
	@Override
	public List<MachinesConf> findConfByMachinesID(String  machinesGroupID){
		return machinesConfDao.findConfByMachinesID(machinesGroupID);
	}
	
	@Override
	public List<MachinesConf> findByCondition(MachinesConfModel model) {
		// TODO Auto-generated method stub
		return machinesConfDao.findByCondition(model);
	}

	@Override
	public List<Object> findByCondition(MachinesConfModel model, Pager p) {
		// TODO Auto-generated method stub
		return machinesConfDao.findByCondition(model, p);
	}

	@Override
	public MachinesConf findById(String id) {
		// TODO Auto-generated method stub
		return machinesConfDao.findById(id);
	}

	@Override
	public void save(MachinesConf transientInstance) {
		// TODO Auto-generated method stub
		machinesConfDao.save(transientInstance);
	}

	@Override
	public void update(MachinesConf instance) {
		// TODO Auto-generated method stub
		machinesConfDao.update(instance);
	}

	@Override
	public List<MachinesConf> findByMachineId(String machineId) {
		// TODO Auto-generated method stub
		return machinesConfDao.findByCondition(machineId);
	}

}
